home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in1.uu.net!demos!pluscom!usenet
- From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
- Subject: Re: basic syntax
- X-Newsreader: Forte Free Agent 1.0.82
- Sender: usenet@news.rinet.ru (Superuser)
- Nntp-Posting-Host: albea.ugatu.ac.ru
- Organization: Albea
- Message-ID: <DMt4v2.DoM@news.rinet.ru>
- References: <4ft5t8$ltl@robin.cqi.com>
- Date: Thu, 15 Feb 1996 08:01:18 GMT
-
- pan@cqi.com (John L Tucker) wrote:
-
- >I really have looked hard for the answer to this, and can't find it in my
- >books anywhere.
- >I know this must be basic syntax. I just can't find code to steal.
-
- >My compiler is giving me an error message of:
- >"cSrtList needs template instantiation arguments"
-
- >on:
-
- >class mylist : public cSrtList
- > {
- > etc.
-
- >cSrtList has three constructors, each with a differnt argument, the only one
- >I would
- >want to use would be "long MaxItems". (cSrtList is part of a library I have
- >rights to use). I would want to make MaxItems constant.
-
- >Thanks for a patient answer.
- >
-
- cStrList is TEMPLATE class, so you need write something like this:
-
- class mylist: public cStrList<int>
-
-
-
-